#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int x, y;
    scanf("%d%d", &x, &y);
    int a = abs(x + y);
    int b = abs(x - y);
    int c = abs(x * y);
    int max = (a > b) ? a : b;
    max = (max > c) ? max : c;
    int min = (a < b) ? a : b;
    min = (min < c) ? min : c;
    int mid = a + b + c - max - min;
    if (max <= 100)
        printf("%d", max);
    else if (mid <= 100)
        printf("%d", mid);
    else
        printf("%d", min);
    return 0;
}